include(../basic.pri)

QT *= core gui
QT *= network
QT *= charts

greaterThan(QT_MAJOR_VERSION, 4): QT *= widgets

TARGET = mds-d100

LIBS *= \
    -l$$qtLibraryName(fuzzypid) \
    -l$$qtLibraryName(QtExtSerialPort)

SOURCES += \
    communication.cpp \
    communicationproxy.cpp \
    controller.cpp \
    ui/customchartview.cpp \
    ui/mainwindow.cpp \
    main.cpp
#    worker.cpp

HEADERS += \
    communicationproxy.h \
    protocol.h \
    communication.h \
    controller.h \
    ui/customchartview.h \
    ui/mainwindow.h \
#    worker.h

FORMS += \
    ui/mainwindow.ui

#<action android:name="android.intent.action.MAIN"/>
#<category android:name="android.intent.category.HOME"/>
#<category android:name="android.intent.category.DEFAULT"/>
#<category android:name="android.intent.category.MONKEY"/>

unix:android {
     QT *= androidextras

    DISTFILES += \
        android/AndroidManifest.xml \
        android/build.gradle \
        android/gradle/wrapper/gradle-wrapper.jar \
        android/gradle/wrapper/gradle-wrapper.properties \
        android/gradlew \
        android/gradlew.bat \
        android/res/values/libs.xml

    contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
        ANDROID_PACKAGE_SOURCE_DIR = \
            $$PWD/android

#        ANDROID_EXTRA_LIBS = \
#            $$APP_LIBRARY_PATH/libQtExtSerialPort.so \
#            $$APP_LIBRARY_PATH/liberrno.so
    }
} else:linux {
#    SOURCES += udiskupdate_unix.cpp
}

#RESOURCES += \
#    images.qrc
